package com.zhongying.sys.task;

import com.zhongying.sys.entity.SysUserEntity;
import com.zhongying.sys.service.SysUserService;

import org.apache.commons.lang.builder.ToStringBuilder;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * 测试定时任务(演示Demo，可删除)
 * 
 * testTask为spring bean的名称
 * 
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2016年11月30日 下午1:34:24
 */
@Component("testTask")
public class TestTask {
	private Logger logger = LoggerFactory.getLogger(getClass());

	private org.apache.log4j.Logger log4j = org.apache.log4j.Logger.getLogger(TestTask.class);
	
	@Autowired
	private SysUserService sysUserService;
	
	public void test(){
		logger.info("================>logback test");
		log4j.info("=================>log4j test");

	}
	
	

}
